﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ConfApp.Models;
using ConfApp.Services;

namespace ConfApp.ViewModels
{
    public class Map1ViewModel : ViewModel
    {
        public Map1ViewModel(INavigationService navigationService) : base(navigationService)
        {
        }

        private Brush isRoom(string roomId)
        {
            var id =NavigationService.CurrentSource
                                       .OriginalString.Split('=')[1];
            return (Brush) (roomId == id ? Application.Current.Resources["PhoneAccentBrush"]
                : Application.Current.Resources["PhoneForegroundBrush"]);
        }

        public Brush Room3_1Brush
        {
            get { return isRoom("3/1"); }
        }
        
        public Brush Room4_1Brush
        {
            get { return isRoom("4/1"); }
        }
        
        public Brush Room5_1Brush
        {
            get { return isRoom("5/1"); }
        }
        
        public Brush Room6_1Brush
        {
            get { return isRoom("6/1"); }
        }
        
        public Brush Room15_1Brush
        {
            get { return isRoom("15/1"); }
        }

        public Brush RoomJSBrush
        {
            get { return isRoom("Japanski salon"); }
        }

        public override void IsBeingActivated()
        {
            
        }
    }
}
